package cn.jbolt.ai.resource.embedding.controller;

import cn.jbolt.ai.resource.embedding.service.EmbeddingModelTypeService;
import cn.jbolt.util.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Embedding类型管理
 */
@Controller
@ResponseBody
@RequestMapping("/embeddingModelType")
@Tag(name = "Embedding类型管理Controller")
public class EmbeddingModelTypeController {

    @Autowired
    private EmbeddingModelTypeService embeddingModelTypeService;

    @GetMapping("/list")
    @Operation(summary = "获取所有Embedding类型")
    public Result getList(){
        return embeddingModelTypeService.getList();
    }


}
